app.controller("new",function($scope,$ionicLoading,$http){
	$ionicLoading.show()
	$http.get('/api/v2/products/new',{
		params:{
			"offset":0,
			"limit":10
		}
	}).then(function(res){
		if(res){
			$ionicLoading.hide()
		}
		console.log(res.data)
		$scope.news=res.data
	}).catch(function(err){
		$ionicLoading.show({
			duration:3000,
			template:'获取失败'
		})
	})
})